package com.ruoyi.merchant.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券使用记录对象 merchant_usage_record
 * 
 * @author dongdong
 * @date 2025-10-29
 */
public class MerchantUsageRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 使用记录ID */
    private Long id;

    /** 发放记录ID */
    @Excel(name = "发放记录ID")
    private Long issueId;

    /** 优惠券码 */
    @Excel(name = "优惠券码")
    private String couponCode;

    /** 停车记录ID */
    @Excel(name = "停车记录ID")
    private String parkingRecordId;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carNum;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private BigDecimal discountAmount;

    /** 优惠前金额 */
    @Excel(name = "优惠前金额")
    private BigDecimal beforeAmount;

    /** 优惠后金额 */
    @Excel(name = "优惠后金额")
    private BigDecimal afterAmount;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIssueId(Long issueId) 
    {
        this.issueId = issueId;
    }

    public Long getIssueId() 
    {
        return issueId;
    }
    public void setCouponCode(String couponCode) 
    {
        this.couponCode = couponCode;
    }

    public String getCouponCode() 
    {
        return couponCode;
    }
    public void setParkingRecordId(String parkingRecordId)
    {
        this.parkingRecordId = parkingRecordId;
    }

    public String getParkingRecordId()
    {
        return parkingRecordId;
    }
    public void setCarNum(String carNum) 
    {
        this.carNum = carNum;
    }

    public String getCarNum() 
    {
        return carNum;
    }
    public void setDiscountAmount(BigDecimal discountAmount) 
    {
        this.discountAmount = discountAmount;
    }

    public BigDecimal getDiscountAmount() 
    {
        return discountAmount;
    }
    public void setBeforeAmount(BigDecimal beforeAmount) 
    {
        this.beforeAmount = beforeAmount;
    }

    public BigDecimal getBeforeAmount() 
    {
        return beforeAmount;
    }
    public void setAfterAmount(BigDecimal afterAmount) 
    {
        this.afterAmount = afterAmount;
    }

    public BigDecimal getAfterAmount() 
    {
        return afterAmount;
    }
    public void setUseTime(Date useTime) 
    {
        this.useTime = useTime;
    }

    public Date getUseTime() 
    {
        return useTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("issueId", getIssueId())
            .append("couponCode", getCouponCode())
            .append("parkingRecordId", getParkingRecordId())
            .append("carNum", getCarNum())
            .append("discountAmount", getDiscountAmount())
            .append("beforeAmount", getBeforeAmount())
            .append("afterAmount", getAfterAmount())
            .append("useTime", getUseTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
